package io.renren.modules.basedata.controller;


import io.renren.common.utils.R;
import io.renren.modules.basedata.service.VehiclePlateCheckService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/vehicleCheck")
public class VehicleCheckController {

    private static final Logger log = LoggerFactory.getLogger(VehicleCheckController.class);

    @Autowired
    private VehiclePlateCheckService vehiclePlateCheckService;

    @PostMapping("/plateCheck")
    public R plateCheck(@RequestParam String vehiclePlate, @RequestParam String vehicleColor, @RequestParam String vehicleType) throws Exception{
        String result =  vehiclePlateCheckService.checkVehiclePlate(vehiclePlate,vehicleColor,vehicleType);
        return R.ok(result);
    }
}
